<?php

namespace App\Http\Controllers;

use App\Models\Parking;
use Illuminate\Http\Request;

class ParkingController extends Controller
{

    public function add()
    {
        for ($i = 101; $i < 187; $i++) {
            $n = random_int(0, 1);
            Parking::create([
                'name' => $i,
                'status' => $n,
                'floor_id' => -1
            ]);
        }
    }
}
